namespace OasisCiq.Xal
{
    using System.Collections.Generic;
    using System.Collections.Specialized;
    using CommonTypes;
    using External;
    using XS;

    /// <summary>
    /// A locality that is smaller and is contained within the boundaries
    /// of its parent locality. Note that not all localities have sub locality.
    /// For example, many areas within a locality where each area is a sub locality
    /// </summary>
    public class SubLocality : IDataQualityGroup, IExtendedAttributes
    {
        /// <summary>
        /// at least one element required
        /// </summary>
        public virtual ICollection<SubLocalityNameElement> NameElements { get; set; }

        /// <summary>
        /// Type of sub locality
        /// </summary>
        public virtual SubLocalityTypeList Type { get; set; }

        public virtual DataQualityTypeList DataQualityType { get; set; }

        public virtual XSDateTime ValidFrom { get; set; }

        public virtual XSDateTime ValidTo { get; set; }

        public virtual NameValueCollection ExtendedAttributes { get; set; }
    }
}